package com.niiwoo.civet.trade.service.orgloan;

import com.niiwoo.civet.trade.dto.request.orgloan.LoanOrgInfoResponseDTO;
import com.niiwoo.civet.trade.dto.request.orgloan.OrgLoanInvestProjectRequestDTO;
import com.niiwoo.civet.trade.dto.response.orgloan.QueryOrgLoanContractReponseDTO;
import com.niiwoo.civet.trade.dto.response.orgloan.QueryOrgLoanInvestInfoReponseDTO;
import com.niiwoo.tripod.provider.dto.response.PageResponseDTO;

/**
 * 极速机构借
 *
 * @author laichunjing
 * @date 2017-12-14
 */
public interface OrgLoanDubboService {


    /**
     * 根据投资项目ID查询投资信息
     *
     * @param requestDTO
     * @return
     */
    PageResponseDTO<QueryOrgLoanInvestInfoReponseDTO> queryOrgLoanInvestInfoByProjectId(OrgLoanInvestProjectRequestDTO requestDTO);

    /**
     * 信用借查询合同参数
     *
     * @param projectId
     * @param userId
     * @return
     */
    QueryOrgLoanContractReponseDTO queryOrgLoanContractParas(Long projectId, String userId);

    /**
     * 判断用户是否机构极速借
     */
    default int queryOrgLoanProject(String userId) {
        return 0;
    }


}
